<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
  <!-- blueprint CSS framework -->
		
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin.css" media="screen, projection" />
	
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
  </head>
<body class="sites index">

<div id='header'>
  <div class='container_16'>
    <div class='grid_16'>

      
      <div id='logo'>
        <a href="/en" title="Home" class="logo"><img alt="CushyCMS Logo" src="/images/logo.png?1314164582" /></a>
      </div>
      
      <div id='language'>
        
       
        <div class='clear'></div>
        
      </div>
    </div>
    <div class='clear'></div>
    <?php
    if(Yii::app()->user->getState("usr_profile")==User::ROLE_ADMIN):
        $this->widget('zii.widgets.CMenu', array(
  				'items'=>array(array('label'=>Yii::t('public','Sites') , 'url'=>array('/admin/site'), 'active'=>Yii::app()->controller->id=='admin/site'),
                         array('label'=>Yii::t('public','User') , 'url'=>array('/users/user/admin'), 'active'=>Yii::app()->controller->id=='user'),
                         array('label'=>Yii::t('public','Templates') , 'url'=>array('/admin/template/index'), 'active'=>Yii::app()->controller->id=='admin/template'),
                         array('label'=>Yii::t('public','Log Out') , 'url'=>array('/users/login/logout'),'linkOptions'=>array('class'=>'signUp'))        
          ),				
  				 'id' => 'nav',
  			));
    else:
  	    $this->widget('zii.widgets.CMenu', array(
  				'items'=>array(array('label'=>Yii::t('public','Sites') , 'url'=>array('/admin/site'), 'active'=>Yii::app()->controller->id=='admin/site'),
                         array('label'=>Yii::t('public','User') , 'url'=>array('/users/user/admin'), 'active'=>Yii::app()->controller->id=='user'),
                         array('label'=>Yii::t('public','Templates') , 'url'=>array('/admin/userhastemplate/index'), 'active'=>Yii::app()->controller->id=='admin/template'),
                         array('label'=>Yii::t('public','Log Out') , 'url'=>array('/users/login/logout'),'linkOptions'=>array('class'=>'signUp'))        
          ),				
  				 'id' => 'nav',
  			));
  	endif;
    ?>
    <ul id='login'>
      <li><a href="#" id="login_toggle"><?php echo Yii::app()->user->getState("name"); ?><span class="toggle">&nbsp;</span></a></li>
    </ul>
    <div class='clear'></div>
    <div class='loginPanel' id="credentials" style="display: none">
      <div id="userInfo">
        <?php echo Yii::app()->user->getState("rol"); ?>
        <ul class="options">
          <li><a href="/users/login/logout" class="loginButton" >Logout</a></li>
          <li><a href="/users/user" class="loginButton">Preferences</a></li>
        </ul>
      </div>

    </div>
  </div>

</div>

<div  class="cushycms">
        
</div>
<div id='buttonRow'>
  <div class='container_16'>
    <div class="grid_10">

      <h3 style="font-size:22px; line-height:32px;">Le gusta este sitio? realize su donación</h3> 
    </div>
    <div class="grid_5">
      <a href="/en/static/pro" class="submit signUp">Donar</a>    </div>
       <div>
      <?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
			'homeLink'=>CHtml::link('Main page', '/admin/site'), 
		)); ?><!-- breadcrumbs -->
	<?php endif?>
	</div>
  </div><!-- container_16 -->
  <div class='clear'></div>
</div><!-- buttonRow -->

<div id="pageContent" class="min-height" style="min-height:700px;">

  <div class="container_16">
    <div class="grid_11" style="width:665px;">
    
     <?php echo $content; ?>
      
    </div>
    <div class="grid_6" style="margin:0">
              <div class="note">

          <h3>Control Panel</h3>
          <p>As a designer, the control panel is where you manage your sites, pages and editors.</p>
          <p>Your editors will see a simplified version of this control panel and be restricted to editing page content only.</p>
                  </div>
                  <div class="warning">
  <h3><!--Instructions For Designers-->Attention!</h3>
  <div class="contents" id="instructions">

    <p>You first need to let Cushy know what parts of your page are editable. You do this by adding a class name of <code>cushycms</code> to each of your editable elements.</p>
    <a href="#example" class="lightview" title="Example: Making an editable element:::: width: 600, height: 250">See Example &raquo;</a>
    <div id="example" style="display:none;">
      <div class="tagCodeViewer">
          <pre style="margin:0;"><code id="code" style="margin:0;">&lt;h1 <span>class=&quot;cushycms&quot;</span> title=&quot;My Heading&quot;&gt;This will become editable&lt;/h1&gt;

    &lt;div <span>class=&quot;cushycms&quot;</span> title=&quot;Main Content&quot;&gt;
      &lt;p&gt;More editable stuff here...&lt;/p&gt;
    &lt;/div&gt;
    &lt;p&gt;I'm not editable.&lt;/p&gt;

    &lt;img <span>class=&quot;cushycms&quot;</span> src=&quot;foo.jpg&quot; alt=&quot;I'm an editable image!!&quot; /&gt;</code></pre>
          <p style="margin:0 0 10px 0;">An optional <code>title</code> attribute can be used to name each editable area (see above).</p>

        </div>
        <p>If you believe this to be in error, you can use manual FTP to replace the file in question, or use the revision history link above to possibly roll back to older revisions of this page that CushyCMS has on file.</p>
        <p>For advanced usage consult the <a href="/en/static/documentation" target="_blank">Designer Documentation&raquo;</a></p>
      </div>
    </div>
</div>

                            
        <div class="note" id="upgrayedd">

          <h3>Upgrade Today!</h3>
          <ul>
            <li>brand the interface to look like your own</li>
            <li>repeatable content regions</li>
            <li>create new pages via cloning</li>
            <li>custom classes per editor</li>

          </ul>
          <p>And more...<br />
          <a href="http://cushycms.com/static/pro">See features and pricing &raquo;</a></p>
        </div>
        
         <div class="warning">
          <h3>Nuestro equipo !</h3>
          
      
          <div class="contents" id="instructions">
        <div id="adSpaceOne"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/207088.jpg" title="Líderes del proyecto - Jesus" alt="creadores" /></div>
        <div id="adSpaceTwo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/wrcfv8.jpg" title="Líderes del proyecto - José" alt="creadores" /></div>
        </div>
          </div>
        <div class="clear"></div>
        <div id="facebook">

          <fb:like-box href="http://www.facebook.com/CushyCMS" width="265" show_faces="true" stream="false" header="false"></fb:like-box>
        </div>
          </div>
    <div class="clear"></div>

  </div>
</div>


<div class="clear"></div>


  <div id='footer'>
    <div class='container_16'>
      <div class='grid_11'>
        <h6>The Cushy Team</h6>
        <p>Stateless Systems, the team behind Cushy is based in Melbourne, Australia and is passionate about the web. We provide on-demand web services that empower users around the globe by simplifying the way they work.</p>
        <a href="http://www.twitter.com/cushy_cms"><img src="http://twitter-badges.s3.amazonaws.com/follow_us-b.png" alt="Follow Cushy CMS on Twitter" /></a>

        <br />
        <br />
        <a href="http://www.facebook.com/cushycms"><img src="/images/find-us-on-facebook-button.jpg" border="0" /></a>
        <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
        <fb:like href="http://www.facebook.com/cushycms" layout="button_count" show_faces="false" width="350" font=""></fb:like>
      </div>
      <div class='grid_4 push_2'>
        <h6>Network sites:</h6>

        <ul>
          <li><a href="http://retailmenot.com">Coupons</a></li>
          <li><a href="http://trendsmap.com">Trends</a></li>
          <li><a href="http://droolr.com">Gadgets</a></li>
          <li><a href="http://oursignal.com">News</a></li>
        </ul>
      </div>

      <div class='clear'></div>
    </div>
  </div>
  <div class='clear'></div>
  <div id="copyright">
    <div class='container_16'>
      <p>&copy;2010 <a href='http://statelesssystems.com'>Stateless Systems</a> | <a href="/en/static/terms">Terms of Service</a> | <a href="/en/static/privacy">Your Privacy</a> | <a href="/en/static/support">Support</a></p>

    </div>
  </div>
<?php
    Yii::app()->clientScript->registerScript('helloscript',"
        jQuery('#login_toggle').click(function() {
          if (jQuery('#credentials').is(':visible')) {
              jQuery('#credentials').hide();
          } else {
              jQuery('#credentials').show();
          }
          
        });
    ",CClientScript::POS_READY);
?>
	<?php $this->widget('application.extensions.fancyBox.EFancyBox',
	        array(	        
	        'target'=>'#rememberPassword'	      
	));?>

</body>
</html>